package com.party.core.model.member;

import com.party.core.model.BaseModel;

import java.util.Date;

/**组织机构信息表
 * party
 * Created by haugn wu ming
 * on 2018/2/6.
 */
public class MemberGroupInfo extends BaseModel{
    //公司名称
    private  String name;
    //公司简介
    private  String info;
    //公司电话
    private  String telephone;
    //公司地址
    private  String address;
    //公司邮箱
    private  String postcode;
    //公司传真
    private  String fax;
    //主题id
    private  String eventId;
    //用户id
    private  String memberId;

    //服务费
    private Double serviceCharge;
    //提现手续费
    private Double withdrawalCharge;
    // 合作商到期时间  辅助字段
    private String stringExpirationTime;
    // 合作商到期时间
    private Date expirationTime;
    //签约人
    private String contractor;
    //签约时间
    private Date  signingTime;
    private String strSigningTime;

    //合同编号
    private String contractNo;
    //合同开始时间
    private Date contractStartTime;
    private String strContractStartTime;
    //合同结束时间
    private Date contractEndTime;
    private String strContractEndTime;
    //客户电话
    private String customerPhone;

    //是否编辑过信息(0/否,1是)
    private Integer isEditInfo;


    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public Date getContractStartTime() {
        return contractStartTime;
    }

    public void setContractStartTime(Date contractStartTime) {
        this.contractStartTime = contractStartTime;
    }

    public Date getContractEndTime() {
        return contractEndTime;
    }

    public void setContractEndTime(Date contractEndTime) {
        this.contractEndTime = contractEndTime;
    }

    public String getStringExpirationTime() {
        return stringExpirationTime;
    }

    public void setStringExpirationTime(String stringExpirationTime) {
        this.stringExpirationTime = stringExpirationTime;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Double getServiceCharge() {
        return serviceCharge;
    }

    public void setServiceCharge(Double serviceCharge) {
        this.serviceCharge = serviceCharge;
    }

    public String getContractor() {
        return contractor;
    }

    public void setContractor(String contractor) {
        this.contractor = contractor;
    }

    public Date getSigningTime() {
        return signingTime;
    }

    public void setSigningTime(Date signingTime) {
        this.signingTime = signingTime;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getStrSigningTime() {
        return strSigningTime;
    }

    public void setStrSigningTime(String strSigningTime) {
        this.strSigningTime = strSigningTime;
    }

    public String getStrContractStartTime() {
        return strContractStartTime;
    }

    public void setStrContractStartTime(String strContractStartTime) {
        this.strContractStartTime = strContractStartTime;
    }

    public String getStrContractEndTime() {
        return strContractEndTime;
    }

    public void setStrContractEndTime(String strContractEndTime) {
        this.strContractEndTime = strContractEndTime;
    }

    public Integer getIsEditInfo() {
        return isEditInfo;
    }

    public void setIsEditInfo(Integer isEditInfo) {
        this.isEditInfo = isEditInfo;
    }
    public Double getWithdrawalCharge() {
        return withdrawalCharge;
    }

    public void setWithdrawalCharge(Double withdrawalCharge) {
        this.withdrawalCharge = withdrawalCharge;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        MemberGroupInfo that = (MemberGroupInfo) o;

        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (info != null ? !info.equals(that.info) : that.info != null) return false;
        if (telephone != null ? !telephone.equals(that.telephone) : that.telephone != null) return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (postcode != null ? !postcode.equals(that.postcode) : that.postcode != null) return false;
        if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false;
        return memberId != null ? memberId.equals(that.memberId) : that.memberId == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (info != null ? info.hashCode() : 0);
        result = 31 * result + (telephone != null ? telephone.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (postcode != null ? postcode.hashCode() : 0);
        result = 31 * result + (fax != null ? fax.hashCode() : 0);
        result = 31 * result + (memberId != null ? memberId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MemberGroupInfo{" +
                "name='" + name + '\'' +
                ", info='" + info + '\'' +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", postcode='" + postcode + '\'' +
                ", fax='" + fax + '\'' +
                ", eventId='" + eventId + '\'' +
                ", memberId='" + memberId + '\'' +
                ", serviceCharge=" + serviceCharge +
                ", withdrawalCharge=" + withdrawalCharge +
                ", stringExpirationTime='" + stringExpirationTime + '\'' +
                ", expirationTime=" + expirationTime +
                ", contractor='" + contractor + '\'' +
                ", signingTime=" + signingTime +
                ", strSigningTime='" + strSigningTime + '\'' +
                ", contractNo='" + contractNo + '\'' +
                ", contractStartTime=" + contractStartTime +
                ", strContractStartTime='" + strContractStartTime + '\'' +
                ", contractEndTime=" + contractEndTime +
                ", strContractEndTime='" + strContractEndTime + '\'' +
                ", customerPhone='" + customerPhone + '\'' +
                ", isEditInfo=" + isEditInfo +
                '}';
    }
}
